package com.neoharvest.smartagri.command.impl;

import com.neoharvest.smartagri.command.MachineCommand;
import com.neoharvest.smartagri.model.AgriculturalMachine;

public class StartHarvestCommand implements MachineCommand {
    private AgriculturalMachine machine;

    public StartHarvestCommand(AgriculturalMachine machine) {
        this.machine = machine;
    }

    @Override
    public void execute() {
        machine.start();
        machine.executeTask();
    }
}